﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package L10n.LocaleSettings {
    import org.aswing.*;
    import Classes.*;
    import L10n.LocaleProxyClasses.zh_CN.*;

    public class LocaleSetting_zhCN extends LocaleSetting {

        private const localeFont_MSYH_CN:String = "微软雅黑";
        private const localeFont_MSYH_EN:String = "Microsoft YaHei";
        private const localeFont_SIM_HEI_CN:String = "黑体";
        private const localeFont_SIM_HEI_EN:String = "SimHei";

        public function LocaleSetting_zhCN(_arg1:String){
            super(_arg1);
            default_font_name = "black";
            default_font_name_bold = "black";
            title_font = "black";
            default_serif_font = "black";
            genericMessageMargin = 1.25;
            system_font_fallback = [this.localeFont_MSYH_CN, this.localeFont_MSYH_EN, this.localeFont_SIM_HEI_CN, this.localeFont_SIM_HEI_EN];
            proxyClassDict[CityASwingSkin] = CityASwingSkin_zhCN;
        }
        override public function doAction():Boolean{
            return (true);
        }
        override public function generateObject(_arg1:Class, ... _args):Object{
            if (((proxyClassDict[_arg1]) && ((proxyClassDict[_arg1] is Class)))){
                switch (_args.length){
                    case 0:
                        return (new (proxyClassDict[_arg1])());
                    case 1:
                        return (new proxyClassDict[_arg1](_args[0]));
                    case 2:
                        return (new proxyClassDict[_arg1](_args[0], _args[1]));
                    case 3:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2]));
                    case 4:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2], _args[3]));
                    case 5:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2], _args[3], _args[4]));
                    case 6:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2], _args[3], _args[4], _args[5]));
                    case 7:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2], _args[3], _args[4], _args[5], _args[6]));
                    case 8:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2], _args[3], _args[4], _args[5], _args[6], _args[7]));
                    case 9:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2], _args[3], _args[4], _args[5], _args[6], _args[7], _args[8]));
                    case 10:
                        return (new proxyClassDict[_arg1](_args[0], _args[1], _args[2], _args[3], _args[4], _args[5], _args[6], _args[7], _args[8], _args[9]));
                };
            };
            return (new (_arg1)());
        }
        override public function matchFontAdjust_SIM_HEI(_arg1:Component, _arg2:Object):void{
            if (!(((SYSTEM_FONT == this.localeFont_SIM_HEI_CN)) || ((SYSTEM_FONT == this.localeFont_SIM_HEI_EN)))){
                return;
            };
            genericMessageMargin = 0.95;
            adjustCompoentMargin(_arg1, _arg2);
            if (_arg2.hasOwnProperty("textfield")){
                adjustTextField(_arg2.textfield, _arg2);
            };
        }
        override public function loadFontAsset():void{
            loadExternalFontAsset("assets/fonts/FontLibrary_zh_CN.swf");
        }

    }
}//package L10n.LocaleSettings 
